/*
 * Pipe.h
 *
 *  Created on: 20 sep 2010
 *      Author: Juan
 */

#ifndef PIPE_H_
#define PIPE_H_

#include <list>
using namespace std;

#include "Command.h"

class Pipe {
private:
	list<Command*>* commands;
public:
	Pipe();
	virtual ~Pipe();
	void addCommand(Command* c);
	bool hasCommands();
	int countCommands();
	list<Command*>* getCommands();
	Command* popCommand();
};

#endif /* PIPE_H_ */
